package training.oop;

public final class ImmutableClass {
	
	String name;
	int id;
	
	Student student;
	
	
	public ImmutableClass(String name, int id){
		this.name = name;
		this.id=id;
	}


	public String getName() {
		return name;
	}


	public int getId() {
		return id;
	}
	
	
	public Student getStudent(){
		return student; //this is wrong
		//create brand new student object and return it so that our class (ImmutableClass remains
		//Immutable
	}
	
	

}
